import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'


import Index from '@/page/index'
import Test from '@/page/test'
import Dashboard from '@/page/dashboard/dashboard'
import ProductList from '@/page/product/list'
import Login from '@/page/login'
import MemberList from '@/page/member/list'
import OrderList from '@/page/order/list'
import ProductCreate from '@/page/product/create'
import productDetail from '@/page/product/detail'



import bussinessCreate from '@/page/bussiness'

import AccountBalance from '@/page/account/balance'
import NoUsedOrderList from '@/page/order/nousedorderlist'
import IncomeDetails from '@/page/member/incomedetails'
import SendNotice from '@/page/fun/sendnotice'
import SystemProductList from '@/page/product/sys'
import ManagerSystemProductList from '@/page/product/managerSys'
import ShenPi from '@/page/product/shenpi'
import Shopconfig from '@/page/shop/config'
import Report from '@/page/report/report'

import MenuConfig from '@/page/menu/list'
import RoleList from '@/page/role/list'

import Register from '@/page/register'


import InterfaceList from '@/page/config/interfaceList'
import UserApi from '@/page/config/userapi'

import ApplyBackTicket from '@/page/order/applybackticketlist'
import Pricelist from '@/page/report/pricelist'
import Statisticspricelist from '@/page/report/statisticspricelist'


import UserInfo from '@/page/config/userinfo'
import DockingParams from '@/page/config/dockingparams'
import StatisticsSeller from '@/page/report/seller'


import DestroyLogin from '@/page/destroy/login'
import DestroyMain from '@/page/destroy/main'


import CuanyueIndex from '@/page/cuanyue/index'
import CuanyueSlider from '@/page/cuanyue/slider'
import CuanyuePinpaiyoushi from '@/page/cuanyue/pinpaiyoushi'
import CuanyueLiaojiecuanyue from '@/page/cuanyue/liaojiecuanyue'
import CuanyueZhaoshangjiameng from '@/page/cuanyue/zhaoshangjiameng'
import CuanyueXinwenzixun from '@/page/cuanyue/xinwenzixun'
import CuanyueCuanyuehuoban from '@/page/cuanyue/cuanyuehuoban'
import CuanyueLianxiwomen from '@/page/cuanyue/lianxiwomen'
import CuanyueXinwenxiangqing from '@/page/cuanyue/xinwenxiangqing'
import CuanyueQiyebeijing from '@/page/cuanyue/qiyebeijing'
import CuanyueQuanguowangluo from '@/page/cuanyue/quanguowangluo'
import CuanyueWanshantuandui from '@/page/cuanyue/wanshantuandui'
import CuanyueZhongyanggongchang from '@/page/cuanyue/zhongyanggongchang'
import CuanyueChanpinyoushi from '@/page/cuanyue/chanpinyoushi'
import CuanyueVIsheji from '@/page/cuanyue/visheji'
import CuanyueKongjianzhanshi from '@/page/cuanyue/kongjianzhanshi'

Vue.use(Router)

export default new Router({
  routes: [
    {
		path: '/',
		name: 'index',
		component: Index,
		children: [
			{
	            name : 'dashboard',
	            path: '/dashboard',
	            component: Dashboard,
	        },

	        {
				path: '/test',
				name: 'test',
				component: Test,
		    },

	        {
				path: '/memberlist',
				name: 'app.qmmember',
				component: MemberList,
				// meta: {
			 //    	keepAlive: true
			 //    },
		    },


		    {
				path: '/orderlist',
				name: 'app.qmorderlist',
				component: OrderList,
				// meta: {
			 //    	keepAlive: true
			 //    },
		    },


		    {
				path: '/productcreate',
				name: 'app.qmnewproduct',
				component: ProductCreate,
		    },


		    {
				path: '/productlist',
				name: 'app.newproductlist',
				component: ProductList,
				// meta: {
			 //    //	keepAlive: true
			 //    },
		    },


		    {
				path: '/product/:id',
				name: 'productDetail',
				component: productDetail,
		    },


		    {
				path: '/bussinesscreate',
				name: 'bussinesscreate',
				component: bussinessCreate,
		    },


		    {
				path: '/account/balance',
				name: 'accountBalance',
				component: AccountBalance,
		    },

		    {
				path: '/order/nousedlist',
				name: 'noUsedOrderList',
				component: NoUsedOrderList,
		    },

		    {
				path: '/account/incomedetails',
				name: 'app.weshopbalance',
				component: IncomeDetails,
				// meta: {
			 //    	keepAlive: true
			 //    },
		    },


		    {
				path: '/fun/sendnotice',
				name: 'app.sendnotice',
				component: SendNotice,
		    },

		    {
				path: '/sysproductlist.html',
				name: 'app.qmbusinessplist',
				component: SystemProductList,
		    },


		    {
				path: '/shenpi.html',
				name: 'app.qmshenpi',
				component: ShenPi,
		    },


			{
				path: '/managersysproductlist.html',
				name: 'app.qmmanagerplist',
				component: ManagerSystemProductList,
		    },

		    {
				path: '/shopconfig.html',
				name: 'app.shopconfig',
				component: Shopconfig,
		    },

		    {
				path: '/report.html',
				name: 'app.report',
				component: Report,
		    },



		    {
				path: '/menuconfig.html',
				name: 'menuconfig',
				component: MenuConfig,
		    },

		    {
				path: '/interfacelist.html',
				name: 'synclist',
				component: InterfaceList,
		    },

		    {
				path: '/userapi.html',
				name: 'userapi',
				component: MenuConfig,
		    },

		    {
				path: '/userinfo.html',
				name: 'userinfo',
				component: UserInfo,
		    },

		    {
				path: '/roleList.html',
				name: 'roleconfig',
				component: RoleList,
		    },

		    {
				path: '/applybackticket.html',
				name: 'applybackticket',
				component: ApplyBackTicket,
		    },

		    {
				path: '/dockingparams.html',
				name: 'dockingparams',
				component: DockingParams,
		    },

		    {
				path: '/statisticsseller.html',
				name: 'seller',
				component: StatisticsSeller,
		    },
		    {
				path: '/pricelist.html',
				name: 'pricelist',
				component: Pricelist,
		    },
		    {
				path: '/statisticspricelist.html',
				name: 'statisticspricelist',
				component: Statisticspricelist,
		    },

		]
    },


    {
		path: '/login',
		name: 'login',
		component: Login,
    },
    
	{
		path: '/register',
		name: 'register',
		component: Register,
    },


    

    {
		path: '/destroy/login.html',
		name: 'destroyLogin',
		component: DestroyLogin,
    },
    {
		path: '/destroy/:devicecode/:name',
		name: 'destroyMain',
		component: DestroyMain,
    },


  //   {
		// path: '/cuanyue/index.html',
		// name: 'cuanyueIndex',
		// component: CuanyueIndex,
  //   },

  //   {
		// path: '/cuanyue/slider.html',
		// name: 'cuanyueSlider',
		// component: CuanyueSlider,
  //   },


    {
    	path: '/cuanyue',
		name: 'cuanyue',
		component: CuanyueIndex,
		children: [
			{
	            name : 'cuanyueindex',
	            path: '/cuanyue/index.html',
	            component: CuanyueSlider,
	        },
	        {
	            name : 'cuanyuepinpaiyoushi',
	            path: '/cuanyue/pinpaiyoushi.html',
	            component: CuanyuePinpaiyoushi,
	        },
	        {
	            name : 'cuanyueliaojiecuanyue',
	            path: '/cuanyue/liaojiecuanyue.html',
	            component: CuanyueLiaojiecuanyue,
	        },
	        {
	            name : 'cuanyuezhaoshangjiameng',
	            path: '/cuanyue/zhaoshangjiameng.html',
	            component: CuanyueZhaoshangjiameng,
	        },
	        {
	            name : 'cuanyuepinpaiyoushi',
	            path: '/cuanyue/pinpaiyoushi.html',
	            component: CuanyuePinpaiyoushi,
	        },
	        {
	            name : 'cuanyuexinwenzixun',
	            path: '/cuanyue/xinwenzixun.html',
	            component: CuanyueXinwenzixun,
	        },
	        {
	            name : 'cuanyuecuanyuehuoban',
	            path: '/cuanyue/cuanyuehuoban.html',
	            component: CuanyueCuanyuehuoban,
	        },
	        {
	            name : 'cuanyuelianxiwomen',
	            path: '/cuanyue/lianxiwomen.html',
	            component: CuanyueLianxiwomen,
	        },
	        {
	            name : 'cuanyuexinwenxiangqing',
	            path: '/cuanyue/xinwenxiangqing.html',
	            component: CuanyueXinwenxiangqing,
	        },
	        {
	            name : 'cuanyueqiyebeijing',
	            path: '/cuanyue/qiyebeijing.html',
	            component: CuanyueQiyebeijing,
	        },
	        {
	            name : 'cuanyuequanguowangluo',
	            path: '/cuanyue/quanguowangluo.html',
	            component: CuanyueQuanguowangluo,
	        },
	        {
	            name : 'cuanyuewanshantuandui',
	            path: '/cuanyue/wanshantuandui.html',
	            component: CuanyueWanshantuandui,
	        },
	        {
	            name : 'cuanyuezhongyanggongchang',
	            path: '/cuanyue/zhongyanggongchang.html',
	            component: CuanyueZhongyanggongchang,
	        },
	        {
	            name : 'cuanyuechanpinyoushi',
	            path: '/cuanyue/chanpinyoushi.html',
	            component: CuanyueChanpinyoushi,
	        },
	        {
	            name : 'cuanyuevisheji',
	            path: '/cuanyue/visheji.html',
	            component: CuanyueVIsheji,
	        },
	        {
	            name : 'cuanyuekongjianzhanshi',
	            path: '/cuanyue/kongjianzhanshi.html',
	            component: CuanyueKongjianzhanshi,
	        },
	    ]
    
	}
  ]
})
